import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';

import dayjs from 'dayjs';

export const querySchema: FormSchemaGetter = () => [

  {
    component: 'RangePicker',
    fieldName: 'createTime1',
    label: '未转单日期',
    defaultValue: [dayjs().subtract(180, 'days'), dayjs()],
  },
  {
    component: 'RangePicker',
    fieldName: 'createTime2',
    label: '已转单日期',
    defaultValue: [dayjs().subtract(180, 'days'), dayjs()],
  },
 
];

export const columns: VxeGridProps['columns'] = [
  
  					
  {
    title: '销售订单',
    field: 'data0',
    width: 'auto',
  },
  {
    title: '订单项次',
    field: 'data19',
    width: 'auto',
  },
  {
    title: '客户简称',
    field: 'data1',
    width: 'auto',
  },
  {
    title: '单据日期',
    field: 'data3',
    width: 'auto',
  },
  {
    title: '产品料号',
    field: 'data4',
    width: 'auto',
  },
  							
  {
    title: '订单数量',
    field: 'data17',
    width: 'auto',
  },
  {
    title: '芯片',
    field: 'chipName',
    width: 'auto',
  },
  {
    title: '产品名称',
    field: 'data7',
    width: 'auto',
  },
  {
    title: '下单业务',
    field: 'data8',
    width: 'auto',
  },
  {
    title: '业务要求交期',
    field: 'data9',
    width: 'auto',
  },
  {
    title: '生管启动时间',
    field: 'data10',
    width: 'auto',
  },

  {
    title: '未产出',
    field: 'data11',
    width: 'auto',
  },	
  {
    title: '超发数量',
    field: 'data5',
    width: 'auto',
  },
  {
    title: '备注',
    field: 'remark',
    width: 'auto',
  },
  

];
